import os
from multiprocessing import Process

def info(title):
    print(title)
    print('module name:', __name__)
    print('parent process:', os.getppid())
    print('parent id:', os.getpid())
    print('\n\n')

def f(name):
    info('\033[31;1mcalled from chile process function f\033[0m')
    print('hello', name)

if __name__ == '__main__':
    info('\033[31;1mmain process f\033[0m')
    p = Process(target=f, args=('bob',))
    p.start()